package com.hwl.controller;


import com.hwl.service.UserService;
import org.junit.Test;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
public class UserController {


    //添加方法
    @Test
    public void insertuser() throws IOException {
       new UserService().insertuser();

    }

    //查询方法
    @Test
    public void selecttuser() throws IOException {
        new UserService().selecttuser();
    }

    //修改方法
    @Test
    public void updateuser() throws IOException {
        new UserService().updateuser();
    }

    //删除方法
    @Test
    public void deleteuser() throws IOException {
        new UserService().deleteuser();
    }
}
